#!/bin/sh
if [ ! -d"/usr/share/iptux/" ]; then
    sudo mkdir /usr/share/iptux/
fi

sudo cp -rf ./iptux.jar /usr/share/iptux/iptux.jar
sudo cp -rf ./ip-tux.png /usr/share/iptux/ip-tux.png
cp -rf ./iptux.properties ~/iptux.properties
sudo echo -e "
[Desktop Entry]
Encoding=UTF-8
Name=jiptux
Comment=iptux powered by java
Exec=java -jar /usr/share/iptux/iptux.jar
Icon=/usr/share/iptux/ip-tux.png
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;
" >  /usr/share/applications/jiptux.desktop



